package by.bsu.scs.model;

// Generated 05.03.2011 11:02:05 by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;

/**
 *                      This class contains MarkPolicy details.
 *              
 */
public class MarkPolicy implements java.io.Serializable {
        private static final long serialVersionUID = 1L;

		private int markPolicyId;
        private String policyShort;
        private String policyDescription;
        private boolean visible;
        private int idCreator;
        private Set <MarkPolicyCriteria> markPolicyCriteria = new HashSet <MarkPolicyCriteria> (0);

        public MarkPolicy() {
        }

        public MarkPolicy(String policyShort) {
                this.policyShort = policyShort;
        }

        public MarkPolicy(String policyShort, String policyDescription) {
                super();
                this.policyShort = policyShort;
                this.policyDescription = policyDescription;
        }

        public MarkPolicy(String policyShort, String policyDescription,
                        Set <MarkPolicyCriteria> markPolicyCriteria) {
                this.policyShort = policyShort;
                this.policyDescription = policyDescription;
                this.markPolicyCriteria = markPolicyCriteria;
        }
        
        public MarkPolicy(String policyShort, String policyDescription,
                Set <MarkPolicyCriteria> markPolicyCriteria, int idCreator) {
	        this.policyShort = policyShort;
	        this.policyDescription = policyDescription;
	        this.markPolicyCriteria = markPolicyCriteria;
	        this.idCreator = idCreator;
        }	
        
        public int getMarkPolicyId() {
                return this.markPolicyId;
        }

        public void setMarkPolicyId(int markPolicyId) {
                this.markPolicyId = markPolicyId;
        }

        public String getPolicyShort() {
                return this.policyShort;
        }

        public void setPolicyShort(String policyShort) {
                this.policyShort = policyShort;
        }

        public String getPolicyDescription() {
                return this.policyDescription;
        }

        public void setPolicyDescription(String policyDescription) {
                this.policyDescription = policyDescription;
        }

        public Set <MarkPolicyCriteria> getMarkPolicyCriteria() {
                return this.markPolicyCriteria;
        }

        public void setMarkPolicyCriteria(Set <MarkPolicyCriteria> markPolicyCriteria) {
                this.markPolicyCriteria = markPolicyCriteria;
        }
        
        public boolean isVisible() {
			return visible;
		}

		public void setVisible(boolean visible) {
			this.visible = visible;
		}

		public int getIdCreator() {
			return idCreator;
		}

		public void setIdCreator(int idCreator) {
			this.idCreator = idCreator;
		}
}
